package cn.mydemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author oldliu
 * @since 1.0
 */
public class SprintGTest {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicatonContext.xml");
        People p = context.getBean("p",People.class);
        //People p3 =(People) context.getBean("p");
        p.say();
    }
}
